import java.util.ArrayList;
import java.util.List;

public class FizzBuzz {

    public List<String> fizzBuzz(int n) {
        List<String> result=new ArrayList<>();
        for(int i=1;i<=n;i++){
            if(n/3==0||n/5==0) {
                String a = "";
                if (n / 3 == 0) {
                    a += "Fizz";
                }
                if (n / 5 == 0) {
                    a += "Buzz";
                }
                result.add(a);
            }else {
                result.add(String.valueOf(i));
            }
        }
        return result;
    }
}
